import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;

public class lab1 extends JPanel {
	public lab1() {

		JLabel label1;

		label1 = new JLabel("turesh lab 1", JLabel.CENTER);


		this.add(label1);
		this.setBackground(Color.RED);
	}

	public static void main(String[] args) {

		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		frame.add(new lab1());

		frame.pack();
		frame.setVisible(true);
	}
}